<?php
return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'beanstalk' => [
            'class' => 'udokmeci\yii2beanstalk\Beanstalk',
            'host' => '127.0.0.1', // default host
            'port' => 11347,
            'connectTimeout' => 1,
            'sleep' => false, // or int for usleep after every job
        ],
        'cache' => [
//            'class' => 'yii\caching\FileCache',
            'class' => 'yii\redis\Cache',
        ],
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ],
        'redis' => [
            'class' => 'yii\redis\Connection',
            'hostname' => '120.76.213.82',
            'port' => 6380,
            'database' => 0,
            'password'  => '@pooai@',
        ],
        'language' => 'zh-CN',
//        'session' => [
//            'class' => 'yii\redis\Session',
//            'redis' => [
//                'hostname' => '118.89.47.49',
//                'port' => 6379,
//                'database' => 0,
//            ]
//        ],
        'session' => [
            'class' => 'yii\web\DbSession',
             'sessionTable' => 'session',
        ],
        'wechat' => [
            'class' => 'callmez\wechat\sdk\Wechat',
            'appId' => 'wx5dee5a1c01f37b68',
            'appSecret' => 'f4992f40e3686a31c01abd8e82ae4406',
            'token' => 'weixin'
        ],
        'MpWechat' => [
            'class' => 'callmez\wechat\sdk\MpWechat',
            'appId' => 'wx5dee5a1c01f37b68',
            'appSecret' => 'f4992f40e3686a31c01abd8e82ae4406',
            'encodingAesKey'=>'MXAv2FaCZgT5SdKf9KulNxIriXS9jbr3a2q8n7m4VUc',
            'token' => 'weixin'
        ]
//        'wechat' => [
//            'class' => 'callmez\wechat\sdk\Wechat',
//            'appId' => 'wx40f4453940be5dee',
//            'appSecret' => 'e09b251e78c3ac2169b7d1b486b69eab',
//            'token' => 'weixin'
//        ]
    ],
];
